<%--
  Created by IntelliJ IDEA.
  User: Purif
  Date: 2020/9/12
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layout 后台大布局 - Layui</title>
    <%--<link rel="stylesheet" href="../layui/css/layui.css">--%>
    <link rel="stylesheet" href="/static/layui/css/layui.css">


</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">职场畅游 后台布局</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">商品管理</a></li>
            <li class="layui-nav-item"><a href="">用户</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    张宏宇
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退出系统</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item"><a class="loadUrl" href="/admin/company" name="/admin/company">公司信息</a></li>
                <li class="layui-nav-item"><a class="loadUrl" href="/admin/recruiter" name="/admin/department">招聘者信息</a></li>
                <li class="layui-nav-item"><a class="loadUrl" href="/admin/recruitpost" name="/admin/department">招聘职位</a></li>
                <li class="layui-nav-item"><a class="loadUrl" href="/admin/jobhunter" name="/admin/department">求职者信息</a></li>
                <li class="layui-nav-item"><a class="loadUrl" href="/admin/tradepost" name="/admin/department">行业职位</a></li>
                <li class="layui-nav-item"><a class="loadUrl" href="/admin/address" name="/admin/department">地址管理</a></li>
                <li class="layui-nav-item"><a class="loadUrl" href="/admin/shareadmin" name="/admin/shareadmin">发布共享信息</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;" id="content">
            <img style="width: 1400px" height="800" src="${pageContext.request.contextPath}/static/css1/beiji.jpg">

        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
    </div>
</div>



<%--<script src="../layui/layui.js"></script>--%>
<script src="/static/layui/layui.js"></script>
<script src="/static/js/jquery-3.4.1.min.js"></script>
<script>
    layui.use('element', function(){
        var element = layui.element;
    });
    $(function () {
        //alert("jquery");
        $(".loadUrl").each(function(){
            $(this).click(function(){
                $("#content").load($(this).attr("href"));//admin/dempartment   admin/student
                return false;
            });
        });
    })
</script>
</body>
</html>